#+begin_src elisp
;; vterm
(setq vterm-ignore-blink-cursor t)
(setq vterm-max-scrollback 100000)

(defun xiaolong/vterm (&optional buffer-name)
  "Redefine `vterm` to take a universal argument BUFFER-NAME."
  (interactive "BBuffer name: ")
  (vterm buffer-name))
#+end_src

This defines a procedure ~xiaolong/vterm~, which allows specifying a name for the resulting buffer, by using the universal argument (pressing =C-u= before =M-x xiaolong/vterm RET=).

For more info check out the docs of ~interactive~ at:

+ [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Using-Interactive.html]]
+ [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Codes.html]]
+ [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Examples.html]]
